package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 激活或挂起流程实例请求对象
 * @date 2019-11-05 15:46
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "激活或挂起流程实例请求对象", description = "激活或挂起流程实例请求对象，针对正在运行对流程")
public class ActivateProcessInstanceReq extends BaseReqObj {

    private static final long serialVersionUID = -8082241897341388394L;

    @ApiModelProperty(value = "流程实例ID", notes = "流程实例ID", dataType = "String", required = true)
    @NotBlank(message = "流程实例ID不能为空")
    private String processInstanceId;

    @ApiModelProperty(value = "挂起激活标志 1:激活、2:挂起", notes = "挂起激活标志", dataType = "int", required = true,
        allowableValues = "1, 2")
    private int type;
}
